package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import com.codegeek.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 监测目标对象 slope_target
 *
 * @author codegeek
 * @date 2020-02-17
 */
@Data
public class SlopeTarget extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long targetId;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private Integer targetType;

    /**
     * 纬度
     */
    @Excel(name = "纬度")
    private Long targetLat;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private Long targetLon;

    /**
     * 首页图片
     */
    @Excel(name = "首页图片")
    private String indexImg;

    /**
     * 所有图片
     */
    @Excel(name = "所有图片")
    private String imgs;

    /**
     * 所在城市
     */
    @Excel(name = "所在城市")
    private String address;

    /**
     * 三维模型
     */
    @Excel(name = "三维模型")
    private Long mesh;

    /**
     * 责任人
     */
    @Excel(name = "责任人")
    private String respo;

    public void setName(String name) {
        this.name = new ReplaceIllegalChar().replace(name);
    }

    public void setDescription(String description) {
        this.description = new ReplaceIllegalChar().replace(description);
    }

    public void setIndexImg(String indexImg) {
        this.indexImg = new ReplaceIllegalChar().replace(indexImg);
    }

    public void setImgs(String imgs) {
        this.imgs = new ReplaceIllegalChar().replace(imgs);
    }

    public void setAddress(String address) {
        this.address = new ReplaceIllegalChar().replace(address);
    }

    public void setRespo(String respo) {
        this.respo = new ReplaceIllegalChar().replace(respo);
    }
}
